package com.longge.wechat.message.resp;

import java.util.List;

import com.longge.wechat.message.Message;
import com.longge.wechat.message.MessageType;

/**
 * Created with IntelliJ IDEA.
 * User: ywl
 * Date: 2013-12-24
 * Time: 下午10:20
 * To change this template use File | Settings | File Templates.
 */
public class RespArticleMessage extends Message {
    private int ArticleCount;
    private List<Article> Articles;

    public RespArticleMessage()
    {
        MsgType = MessageType.NEWS;
    }
    public RespArticleMessage(String toUserName, String fromUserName) {
        super(toUserName, fromUserName, MessageType.NEWS);
        MsgType = MessageType.NEWS;
    }

    public int getArticleCount() {
        return ArticleCount;
    }

    public void setArticleCount(int articleCount) {
        ArticleCount = articleCount;
    }

    public List<Article> getArticles() {
        return Articles;
    }

    public void setArticles(List<Article> articles) {
        Articles = articles;
        ArticleCount = articles.size();
    }
}
